package com.hs.controller;

import com.hs.entity.Tag;
import com.hs.service.TagService;
import com.hs.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName TagController
 * @Description TODO
 * @Author libowen
 * @Date 2025年08月14日 16:38
 * @Version 1.0
 */
@RestController
@RequestMapping("tag")
public class TagController {
    @Autowired
    private TagService tagService;

    // 根据咨询师id查询标签集合
    @GetMapping("getTagsByConsultantId")
    public R getTagsByConsultantId(int consultantId) {
        List<Tag> tags = tagService.selectTagByConsultantId(consultantId);
        return R.ok(tags);
    }

}
